package com.woniu.controller;


import com.woniu.entity.CheckStatus;
import com.woniu.service.CheckStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class CheckStatusController {


    @Autowired
    private CheckStatusService checkStatusService;

    @RequestMapping("findAllCheckStatus")
    public List<CheckStatus> findAllCheckStatus(){
        return checkStatusService.findAllCheckStatus();
    }
    @RequestMapping("saveCheckStatus")
    public boolean save(@RequestBody List<CheckStatus> list){
        return checkStatusService.save(list);
    }
}
